package com.nhaycungbibi.controller;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.tubeilike.model.TubeModel;

public class PlaylistRss extends HttpServlet {
	private static final long serialVersionUID = 1L;

	protected void doGet(HttpServletRequest req, HttpServletResponse resp)
			throws ServletException, IOException {
		resp.setContentType("text/html;charset=UTF-8");
		if (req.getParameter("cateAlias") != null) {
			req.setAttribute("result",
					TubeModel.getAllByCategory(req.getParameter("cateAlias")));
			req.getRequestDispatcher("/category_videos_infor.jsp").forward(req, resp); 
		} 
	}
}
	